package com.fly.common.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @description 订单
 * @author: liying.fu
 * @Date: 2018/11/24 下午4:09
 */
@Data
@TableName("order_info")
public class OrderEntity {
    /**
     * 订单主键
     */
    @TableId(value = "order_id")
    private Long orderId;
    /**
     * 下单人
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 支付状态：0-待支付；1-支付成功；2-支付失败；3-支付超时；4-支付失败
     */
    @TableField(value = "pay_status")
    private Byte payStatus;
    /**
     * 收货人姓名
     */
    @TableField(value = "recipients")
    private String recipients;
    /**
     * 收货人电话
     */
    @TableField(value = "recipients_tel")
    private String recipientsTel;
    /**
     * 收货人地址
     */
    @TableField(value = "recipients_address")
    private String recipientsAddress;
    /**
     * 订单状态：0-代发货；1-发货中；2-已签收；3-退货；4-取消
     */
    @TableField(value = "order_status")
    private Byte orderStatus;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 数据状态：0-正常；1-删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Byte delete;
}